class {
    onMount() {

    }
}

<div.root>
    <app-foo name="Frank" key="foo">
        Current index: ${input.index}
    </app-foo>
</div>